package contegor.scire.persistence.prevayler;

import java.io.Serializable;

import contegor.scire.core.IdFragment;
import contegor.scire.core.ReturnPoint;
import contegor.scire.core.TaskId;
import contegor.scire.core.Version;
import contegor.scire.structure.RootContainer;

/**
 * {@link RootContainer} with adaptations so it can be used inside a Prevayler system.
 * 
 * @version $Revision$
 * @author Héctor Cirbián Pousa ($Author$)
 */
@Version("@(#) $Id$")
public class PrevalentRootContainer extends RootContainer implements Serializable {

  public PrevalentRootContainer(IdFragment id) {
    super(id);
  }

  private static final long serialVersionUID = -8777357358672992119L;
  
  private ReturnPoint<TaskId> modificationsReturnPoint;

  public ReturnPoint<TaskId> getModificationsReturnPoint() {
    return modificationsReturnPoint;
  }

  public void setModificationsReturnPoint(
      ReturnPoint<TaskId> modificationReturnPoint) {
    this.modificationsReturnPoint = modificationReturnPoint;
  }
}
